<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
<!-- QCtmClassifyTreeItem.cpp -->
  <meta name="description" content="归类树子项.">
  <title>QCtmClassifyTreeItem Class | QCustomUi 1.19.0</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
    <div class="main">
    <div class="main-rounded">
        <div class="navigationbar">
        <ul>
<li><a href="index.html">QCustomUi 1.19.0</a></li>
<li><a href="qcustomui-module.html" translate="no">QCustomUi</a></li>
<li>QCtmClassifyTreeItem</li>
<li id="buildversion">QCustomUi 1.19.0 Reference Documentation</li>
    </ul>
    </div>
</div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<div class="toc">
<h3 id="toc">Contents</h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title" translate="no">QCtmClassifyTreeItem Class</h1>
<!-- $$$QCtmClassifyTreeItem-brief -->
<p>归类树子项. <a href="#details">More...</a></p>
<!-- @@@QCtmClassifyTreeItem -->
<div class="table"><table class="alignedsummary requisites" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign"> <code translate="no">#include &lt;QCtmClassifyTreeItem.h&gt;</code></td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Inherited By:</td><td class="memItemRight bottomAlign"> <p><a href="qctmclassifytreeiconitem.html" translate="no">QCtmClassifyTreeIconItem</a></p>
</td></tr>
</table></div>
<ul>
<li><a href="qctmclassifytreeitem-members.html">List of all members, including inherited members</a></li>
</ul>
<h2 id="public-types">Public Types</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#ItemType-enum" translate="no">ItemType</a></b> { Group, Icon }</td></tr>
</table></div>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem-1" translate="no">QCtmClassifyTreeItem</a></b>(const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem-2" translate="no">QCtmClassifyTreeItem</a></b>(const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#dtor.QCtmClassifyTreeItem" translate="no">~QCtmClassifyTreeItem</a></b>()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QIcon &amp;</td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#icon" translate="no">icon</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QModelIndex </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#index" translate="no">index</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual int </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#itemType" translate="no">itemType</a></b>() const = 0</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCtmClassifyTreeModel *</td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#model" translate="no">model</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QCtmClassifyTreeItem *</td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#parent" translate="no">parent</a></b>() const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#setIcon" translate="no">setIcon</a></b>(const QIcon &amp;<i>icon</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#setText" translate="no">setText</a></b>(const QString &amp;<i>text</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> const QString &amp;</td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#text" translate="no">text</a></b>() const</td></tr>
</table></div>
<h2 id="protected-functions">Protected Functions</h2>
<div class="table"><table class="alignedsummary" translate="no">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#setModel" translate="no">setModel</a></b>(QCtmClassifyTreeModel *<i>model</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qctmclassifytreeitem.html#setParent" translate="no">setParent</a></b>(QCtmClassifyTreeItem *<i>parent</i>)</td></tr>
</table></div>
<!-- $$$QCtmClassifyTreeItem-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
</div>
<!-- @@@QCtmClassifyTreeItem -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$ItemType$$$Group$$$Icon -->
<h3 class="fn" translate="no" id="ItemType-enum">enum QCtmClassifyTreeItem::<span class="name">ItemType</span></h3>
<p>项目类型.</p>
<div class="table"><table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><code translate="no">QCtmClassifyTreeItem::Group</code></td><td class="topAlign tblval"><code translate="no">0</code></td><td class="topAlign">分组项目.</td></tr>
<tr><td class="topAlign"><code translate="no">QCtmClassifyTreeItem::Icon</code></td><td class="topAlign tblval"><code translate="no">1</code></td><td class="topAlign">图标项目.</td></tr>
</table></div>
<!-- @@@ItemType -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QCtmClassifyTreeItem[overload1]$$$QCtmClassifyTreeItem -->
<h3 class="fn" translate="no" id="QCtmClassifyTreeItem">QCtmClassifyTreeItem::<span class="name">QCtmClassifyTreeItem</span>()</h3>
<p>构造函数.</p>
<!-- @@@QCtmClassifyTreeItem -->
<!-- $$$QCtmClassifyTreeItem$$$QCtmClassifyTreeItemconstQString& -->
<h3 class="fn" translate="no" id="QCtmClassifyTreeItem-1"><code class="details extra" translate="no">[explicit]</code> QCtmClassifyTreeItem::<span class="name">QCtmClassifyTreeItem</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>构造函数，设置显示文本 <i translate="no">text</i>.</p>
<!-- @@@QCtmClassifyTreeItem -->
<!-- $$$QCtmClassifyTreeItem$$$QCtmClassifyTreeItemconstQIcon&constQString& -->
<h3 class="fn" translate="no" id="QCtmClassifyTreeItem-2"><code class="details extra" translate="no">[explicit]</code> QCtmClassifyTreeItem::<span class="name">QCtmClassifyTreeItem</span>(const <span class="type"><a href="https://doc.qt.io/qt/qicon.html" translate="no">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>构造函数，设置显示文本 <i translate="no">text</i> 和图标 <i translate="no">icon</i>.</p>
<!-- @@@QCtmClassifyTreeItem -->
<!-- $$$~QCtmClassifyTreeItem[overload1]$$$~QCtmClassifyTreeItem -->
<h3 class="fn" translate="no" id="dtor.QCtmClassifyTreeItem"><code class="details extra" translate="no">[virtual noexcept]</code> QCtmClassifyTreeItem::<span class="name">~QCtmClassifyTreeItem</span>()</h3>
<p>析构函数.</p>
<!-- @@@~QCtmClassifyTreeItem -->
<!-- $$$icon[overload1]$$$icon -->
<h3 class="fn" translate="no" id="icon">const <span class="type"><a href="https://doc.qt.io/qt/qicon.html" translate="no">QIcon</a></span> &amp;QCtmClassifyTreeItem::<span class="name">icon</span>() const</h3>
<p>返回显示图标.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#setIcon" translate="no">setIcon</a>.</p>
<!-- @@@icon -->
<!-- $$$index[overload1]$$$index -->
<h3 class="fn" translate="no" id="index"><span class="type"><a href="https://doc.qt.io/qt/qmodelindex.html" translate="no">QModelIndex</a></span> QCtmClassifyTreeItem::<span class="name">index</span>() const</h3>
<p>返回 index.</p>
<!-- @@@index -->
<!-- $$$itemType[overload1]$$$itemType -->
<h3 class="fn" translate="no" id="itemType"><code class="details extra" translate="no">[pure virtual]</code> <span class="type">int</span> QCtmClassifyTreeItem::<span class="name">itemType</span>() const</h3>
<p>返回项目类型.</p>
<!-- @@@itemType -->
<!-- $$$model[overload1]$$$model -->
<h3 class="fn" translate="no" id="model"><span class="type"><a href="qctmclassifytreemodel.html" translate="no">QCtmClassifyTreeModel</a></span> *QCtmClassifyTreeItem::<span class="name">model</span>() const</h3>
<p>返回数据 model.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#setModel" translate="no">setModel</a>().</p>
<!-- @@@model -->
<!-- $$$parent[overload1]$$$parent -->
<h3 class="fn" translate="no" id="parent"><span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *QCtmClassifyTreeItem::<span class="name">parent</span>() const</h3>
<p>返回父项目.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#setParent" translate="no">setParent</a>().</p>
<!-- @@@parent -->
<!-- $$$setIcon[overload1]$$$setIconconstQIcon& -->
<h3 class="fn" translate="no" id="setIcon"><span class="type">void</span> QCtmClassifyTreeItem::<span class="name">setIcon</span>(const <span class="type"><a href="https://doc.qt.io/qt/qicon.html" translate="no">QIcon</a></span> &amp;<i>icon</i>)</h3>
<p>设置图标 <i translate="no">icon</i>.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#icon" translate="no">icon</a>.</p>
<!-- @@@setIcon -->
<!-- $$$setModel[overload1]$$$setModelQCtmClassifyTreeModel* -->
<h3 class="fn" translate="no" id="setModel"><code class="details extra" translate="no">[protected]</code> <span class="type">void</span> QCtmClassifyTreeItem::<span class="name">setModel</span>(<span class="type"><a href="qctmclassifytreemodel.html" translate="no">QCtmClassifyTreeModel</a></span> *<i>model</i>)</h3>
<p>设置 <i translate="no">model</i>.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#model" translate="no">model</a>().</p>
<!-- @@@setModel -->
<!-- $$$setParent[overload1]$$$setParentQCtmClassifyTreeItem* -->
<h3 class="fn" translate="no" id="setParent"><code class="details extra" translate="no">[protected]</code> <span class="type">void</span> QCtmClassifyTreeItem::<span class="name">setParent</span>(<span class="type"><a href="qctmclassifytreeitem.html#QCtmClassifyTreeItem" translate="no">QCtmClassifyTreeItem</a></span> *<i>parent</i>)</h3>
<p>设置父项目 <i translate="no">parent</i>.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#parent" translate="no">parent</a>().</p>
<!-- @@@setParent -->
<!-- $$$setText[overload1]$$$setTextconstQString& -->
<h3 class="fn" translate="no" id="setText"><span class="type">void</span> QCtmClassifyTreeItem::<span class="name">setText</span>(const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;<i>text</i>)</h3>
<p>设置显示文本 <i translate="no">text</i>.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#text" translate="no">text</a>.</p>
<!-- @@@setText -->
<!-- $$$text[overload1]$$$text -->
<h3 class="fn" translate="no" id="text">const <span class="type"><a href="https://doc.qt.io/qt/qstring.html" translate="no">QString</a></span> &amp;QCtmClassifyTreeItem::<span class="name">text</span>() const</h3>
<p>返回显示文本.</p>
<p><b>See also </b><a href="qctmclassifytreeitem.html#setText" translate="no">setText</a>.</p>
<!-- @@@text -->
</div>
        </div>
       </div>
   </div>
   </div>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> QCustomUi
   Documentation contributions included herein are the copyrights of
   their respective owners.<br/>    The documentation provided herein is licensed under the terms of the    <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation    License version 1.3</a> as published by the Free Software Foundation.<br/> </div>
</body>
</html>
